//
//  XDImageButton.m
//  XDEducation
//
//  Created by apple on 2017/4/13.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "XDImageButton.h"

@implementation XDImageButton

- (CGRect)imageRectForContentRect:(CGRect)contentRect{
    
    return CGRectMake(0, 0, contentRect.size.width, contentRect.size.height * 0.5);
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    
    return CGRectMake(0, contentRect.size.height * 0.45, contentRect.size.width, contentRect.size.height * 0.45);
}
@end
